# define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
    int a = 0;
    while (scanf("%d", &a) != EOF)
    {
        if (90 <= a && a <= 100)
        {
            printf("Perfect\n");
        }
    }


    return 0;
}